package com.zysc.processflow.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zysc.processflow.entity.Category;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper extends BaseMapper<Category> {

    @Select("select * from tb_category where id in (select category_id from tb_category_brand where brand_id = #{bid})")
    List<Category> queryCategoriesByBid(Long bid);
}
